<template>
  <div id="home">
    <span @click="back">退出</span>
  </div>
</template>

<script>
export default {
  name: 'Home',
  components: {},
  methods: {
    back() {
      localStorage.removeItem('token')
      this.$router.push('/login')
    },
  },
}
</script>

<style lang="less"></style>
